import request from "@/utils/request";


// 获取所有系统用户列表
export const queryAllArticleCategory = (page, pageSize,categoryName) =>
    request.get('/articleCategory/search', {
        params: {
            page, pageSize,categoryName
        }
    }).then((result)=>result.data);


// 添加
export const addArticleCategory = (articleCategory) =>
    request.post('/articleCategory/add', articleCategory).then((result)=>result.data);
// 获取所有系统用户列表
export const updateArticleCategory = (articleCategory) =>
    request.put('/articleCategory/update', articleCategory).then((result)=>result.data);

// 删除
export const deleteArticleCategory = (ids) =>
    request.put('/articleCategory/delete', ids).then((result)=>result.data);